{"version":3,"sources":["script.js"],"names":["exports","main_core","main_core_events","main_loader","_templateObject","instances","Map","ImageInput","babelHelpers","createClass","key","value","getById","id","get","params","arguments","length","undefined","classCallCheck","this","defineProperty","handleOnUploaderIsInited","bind","recalculateWrapper","instanceId","containerId","loaderContainerId","settings","disabled","Event","getContainer","event","stopPropagation","preventDefault","addImageHandler","addImage","editImageHandler","editImage","EventEmitter","subscribe","onUploaderIsInitedHandler","set","_this","_event$getCompatData","getCompatData","_event$getCompatData2","slicedToArray","uploader","getPreviews","Dom","addClass","getFileWrapper","requestAnimationFrame","getLoaderContainer","style","display","onFileIsDeletedHandler","onUploadStartHandler","onUploadDoneHandler","onFileCanvasIsLoadedHandler","unsubscribe","recalculateWrapperHandler","unsubscribeEvents","getInputInstance","BX","UI","FileInput","getInstance","getFileInput","agent","fileInput","container","document","getElementById","Type","isDomNode","Error","concat","fileWrapper","querySelector","loaderContainer","getAddButton","addButton","target","detail","inputInstance","items","getItems","hasOwnProperty","frameFlags","active","frameFiles","click","getLoader","loader","Loader","showLoader","setOptions","size","Math","min","offsetHeight","offsetWidth","show","hideLoader","hide","_this2","timeout","clearTimeout","setTimeout","_this3","_event$getCompatData3","_event$getCompatData4","stream","uploading","_this4","_event$getCompatData5","_event$getCompatData6","_this5","isMultipleInput","uploadParams","maxCount","buildShadowElement","wrapper","offsetParent","shadowElement","Tag","render","taggedTemplateLiteral","prepend","canvas","bottomMargin","height","width","closest","querySelectorAll","previews","unbind","unbindAll","removeClass","Reflection","namespace","window"],"mappings":"CAAC,SAAUA,EAAQC,EAAUC,EAAiBC,GAC7C,aAEA,IAAIC,EACJ,IAAIC,EAAY,IAAIC,IAEpB,IAAIC,EAA0B,WAC5BC,aAAaC,YAAYF,EAAY,KAAM,CAAC,CAC1CG,IAAK,UACLC,MAAO,SAASC,EAAQC,GACtB,OAAOR,EAAUS,IAAID,IAAO,SAIhC,SAASN,IACP,IAAIQ,EAASC,UAAUC,OAAS,GAAKD,UAAU,KAAOE,UAA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